
package system.base;

import framework.core.*;

/*
	Author    :chengbiao.he
	CreateTime:2008-02-22 13:52:54
*/
public class PositionSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_warehouse_name = "" ; // all

	private String m_code = "" ; // all

	private String m_name = "" ; // all

	private String m_location = "" ; // all

	private String m_remark = "" ; // all

	private String m_is_default = "" ; // all

	private int m_display_order = Value.NULL_INT ; // all

	private String m_status = "" ; // all

	private String m_create_user_id = "" ; // all

	private String m_create_user = "" ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_user_id = "" ; // all

	private String m_last_update_user = "" ; // all

	private String m_last_update_time = "" ; // all

	private String m_is_sync = "" ; // all
		

public PositionSearchEvent() 
{
	super();
	
	setOrderField(Position.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getWarehouseName()
	{
		return m_warehouse_name ;
	}
	public void setWarehouseName(String v)
	{
		m_warehouse_name = v;
	}

	public String getCode()
	{
		return m_code ;
	}
	public void setCode(String v)
	{
		m_code = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public String getLocation()
	{
		return m_location ;
	}
	public void setLocation(String v)
	{
		m_location = v;
	}

	public String getRemark()
	{
		return m_remark ;
	}
	public void setRemark(String v)
	{
		m_remark = v;
	}

	public String getIsDefault()
	{
		return m_is_default ;
	}
	public void setIsDefault(String v)
	{
		m_is_default = v;
	}

	public int getDisplayOrder()
	{
		return m_display_order ;
	}
	public void setDisplayOrder(int v)
	{
		m_display_order = v;
	}

	public String getStatus()
	{
		return m_status ;
	}
	public void setStatus(String v)
	{
		m_status = v;
	}

	public String getCreateUserId()
	{
		return m_create_user_id ;
	}
	public void setCreateUserId(String v)
	{
		m_create_user_id = v;
	}

	public String getCreateUser()
	{
		return m_create_user ;
	}
	public void setCreateUser(String v)
	{
		m_create_user = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateUserId()
	{
		return m_last_update_user_id ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_last_update_user_id = v;
	}

	public String getLastUpdateUser()
	{
		return m_last_update_user ;
	}
	public void setLastUpdateUser(String v)
	{
		m_last_update_user = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}

	public String getIsSync()
	{
		return m_is_sync ;
	}
	public void setIsSync(String v)
	{
		m_is_sync = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName() throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewCode() throws Exception
	{
		return Value.view(getCode());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewLocation() throws Exception
	{
		return Value.view(getLocation());
	}

	public String viewRemark() throws Exception
	{
		return Value.view(getRemark());
	}

	public String viewIsDefault() throws Exception
	{
		return Value.view(getIsDefault());
	}

	public String viewDisplayOrder() throws Exception
	{
		return Value.view(getDisplayOrder());
	}

	public String viewStatus() throws Exception
	{
		return Value.view(getStatus());
	}

	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}

	public String viewIsSync() throws Exception
	{
		return Value.view(getIsSync());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(Position.ID,getId()));

	c.add(getCondition(Position.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(Position.WAREHOUSE_NAME,getWarehouseName()));

	c.add(getCondition(Position.CODE,getCode()));

	c.add(getCondition(Position.NAME,getName()));

	c.add(getCondition(Position.LOCATION,getLocation()));

	c.add(getCondition(Position.REMARK,getRemark()));

	c.add(getCondition(Position.IS_DEFAULT,getIsDefault()));

	c.add(getCondition(Position.DISPLAY_ORDER,getDisplayOrder()));

	c.add(getCondition(Position.STATUS,getStatus()));

	c.add(getCondition(Position.CREATE_USER_ID,getCreateUserId()));

	c.add(getCondition(Position.CREATE_USER,getCreateUser()));

	c.add(getCondition(Position.CREATE_TIME,getCreateTime()));

	c.add(getCondition(Position.LAST_UPDATE_USER_ID,getLastUpdateUserId()));

	c.add(getCondition(Position.LAST_UPDATE_USER,getLastUpdateUser()));

	c.add(getCondition(Position.LAST_UPDATE_TIME,getLastUpdateTime()));

	c.add(getCondition(Position.IS_SYNC,getIsSync()));
		

			
		return c ;
	}
	
//add by chengbiao.he start

//add by chengbiao.he end
}
